/*
 * @Author: LHL
 * @Date: 2022-10-18 10:08:27
 * @LastEditors: LHL
 * @LastEditTime: 2022-10-18 16:51:02
 * @FilePath: /scs-cover-web/src/components/Table/props.js
 * @Description:
 */
// import { NDataTable } from 'naive-ui'
export const tableProps = {
  // ...NDataTable.props,
  loading: {
    type: Boolean,
    default: false,
  },
  config: {
    type: Object,
    required: true,
  },
  data: {
    type: [Array, null, undefined],
    default: () => [],
  },
  btns: {
    type: Array,
    default: () => [],
  },
  isCheckedRowKeys: {
    type: Boolean,
    default: true,
  },
  renderCell: {
    type: Function,
    default: (value, rowData, column) => {
      if (typeof value === 'number') {
        // 额外判断数字型
        return value
      } else {
        return value || '-'
      }
    },
  },
}
